<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8"/>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <meta name="viewport" content="target-densitydpi=640,width=1280,user-scalable=yes">
    <base href="<?php echo $system['siteRoot'];?>" />
    <title>商品评价</title>
    <?php import_tpl("fragment/icon.php"); ?>
    <link rel="stylesheet" href="plugin/reset.css"/>
    <link rel="stylesheet" href="plugin/awesome4/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="style/common.css"/>
    <link rel="stylesheet" href="style/my-order.css"/>
    <link rel="stylesheet" href="style/evaluation.css"/>
    <script src="plugin/jquery-1.11.2.min.js"></script>
    <script type="text/javascript">_root='<?php echo $system['siteRoot'];?>'</script>
    <script type="text/javascript"> IS_IE9 = false; </script>
    <!-- 照顾低能浏览器 -->
    <!--[if lte IE 9]>
    <script type="text/javascript"> IS_IE9 = true; </script>
    <link rel="stylesheet" href="style/ie9-goods-comment.css"/>
    <style type="text/css">
        .hidden-insert{
            bottom:80px;
        }

    </style>
    <![endif]-->
    <script src="script/api.js"></script>
    <script src="script/tipi.jquery.js"></script>
    <script src="script/rating.jquery.js"></script>
    <script src="script/img.js"></script>
    <script src="script/comment.js"></script>
    <script type="text/javascript">
    $(function(){
    <?php foreach ($r['goods'] as $v) {?>
        easyUploader($(".js-goodsTpl-<?=$v['id']?>"))
    <?php }?>
    });
    </script>
</head>
<body>
<div id="container" class="index">
    <?php import_part("custom.home","userBar"); ?>
    <?php import_part("custom.home","header"); ?>
    <?php import_tpl("fragment/nav.php"); ?>
    <div class="main-container">
        <div class="left">
            <?php import_tpl("fragment/mySlide.php"); ?>
            <div class="qr-code-box">
                <img src="images/weixin.png" alt="扫描二维码关注" title="关注我们的微信"/>
                <div>
                    <p class="weixin">扫描二维码</p>
                    <p class="concern">关注我们的微信</p>
                </div>
            </div>
        </div>
        <div class="right">
            <div class="my-order">
                <form action="<?php e_page('orderAfter','commentSubmit') ?>" method="post">
                    <input type="hidden" name="order_id" value="<?=$r['order']['id']?>">
                    <input type="hidden" name="service_id" value="<?=$r['order']['service_id']?>">
                    <div class="myorder-bg">
                        <div class="myorder-title">
                            <p>商品评价</p>
                        </div>
                        <table class="order-detail">
                            <tr class="order-brief">
                                <td class="order-time" colspan="3">
                                    <?=$r['order']['create_time']?>  |  订单号：<?=$r['order']['id']?>
                                    <span class="provider"><?=$r['shop']['company']?>&nbsp;联系电话：<?=$r['shop']['tel']?>&nbsp;QQ:<?=$r['shop']['qq']?></span>
                                </td>
                            </tr>
                            <?php foreach ($r['goods'] as $v) {?>
                                <tr class="order-content " data-id="<?=$v['id']?>">
                                    <td class="cargo-img"><img src="<?=$v['thumb']?>" alt=""></td>
                                    <td class="cargo-name"><p><?=$v['name']?></p></td>
                                    <td class="evalution-operation"><a href="javascript:">开始评价</a></td>
                                </tr>
                                <tr class="goods-evaluation-box js-goodsTpl-<?=$v['id']?>" data-id="<?=$v['id']?>">
                                    <td colspan="3">
                                        <div class="goods-evaluation">
                                            <p class="js-star">
                                                <label for="">商品总评</label>
                                                <input type="hidden" value="" name="goods_star[<?=$v['id']?>]"/>
                                                <span class="goods-star-choose"></span>
                                            </p>
                                            <label for="" class="specific-evaluation">具体评价</label>
                                            <textarea name="goods_info[<?=$v['id']?>]" cols="30" rows="10" placeholder="请输入您对产品的具体评价，以便我们改进产品的质量。"></textarea>
                                            <p class="photo-hint">晒图限5张</p>
                                            <input class="uploader" type="file" style="display:none;">
                                            <div class="goods-photo">
                                                <img class="goods-photo-tpl" src="" alt="">
                                                <input class="uploader-input" type="hidden" value="" name="goods_photo[<?=$v['id']?>]"/>
                                                <a href="javascript:" class="add-goods-photo">+添加</a>
                                            </div>
                                            <p><a href="javascript:" class="submit-eva">确认</a></p>
                                            <div class="hidden-insert"><!--兼容ie9--></div>
                                        </div>
                                    </td>
                                </tr>
                            <?php }?>

                        </table>
                        <div class="detailed-evaluation">
                            <?php if(!empty($r['order']['service_id'])&&$r['order']['type']=='normal'){ ?>
                                <p class="js-star">
                                    <label for="">服务站</label>
                                    <input type="hidden" value="" name="service_star"/>
                                    <span class="goods-star-choose"></span>
                                </p>
                                <label for="specific-evaluation-id" class="specific-evaluation">具体评价</label>
                                <textarea name="service_text" id="specific-evaluation-id" cols="30" rows="10" placeholder="请输入您对服务站的具体评价，以便我们进一步提升服务质量。"></textarea>
                            <?php } ?>
                            <p><input type="submit" class="submit-eva" value="提交评价"></p>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <?php import_tpl("fragment/footer.php"); ?>
</div>
</body>
</html>